import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Index from '@/views/index/index.vue';
import Login from '@/views/login/index.vue';
import Home from '@/views/home/index.vue';
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'login',
    component: Login,
  },
  {
    path: '/index',
    name: 'index',
    // component: Index,
    component: () => import('@/views/index/index.vue'), // 使用路径别名
  },
  {
    path: '/home',
    name: 'home',
    component: Home,
  },
]
const router = createRouter({
  history: createWebHistory(),
  routes
})
export default router;